package com.example.factory.simple.pay;

public class SimpleFactoryTest {
    public static void main(String[] args) {
        PayFactory factory = new PayFactory();
        IPay pay = factory.createPayWay(AliPay.class);
        System.out.println(pay.pay());
    }
}
